/**
 * 
 */
package com.cbank.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cbank.dao.IndustryDao;
import com.cbank.domain.Industry;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:cBank
 * </p>
 * <p>
 * Contact: 1027448479@qq.com
 * </p>
 * 
 * @author Ag
 * @date 2016年12月13日
 */
@Service
public class IndustryService {
	@Autowired
	private IndustryDao dao;

	public Industry getById(Long id) {
		Industry industry = dao.getById(id);
		return industry;
	}

	public List<Industry> getList(Integer index, Integer pagerSize) {
		return this.dao.getPage(index, pagerSize);
	}

	public Integer getCount() {
		return dao.getCount();
	}
}
